//
//  JSShopCell.m
//  01-瀑布流
//
//  Created by 李建舜 on 06/03/2017.
//  Copyright © 2017 李建舜. All rights reserved.
//

#import "JSShopCell.h"
#import "JSShop.h"
#import "UIImageView+WebCache.h"


@interface JSShopCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end

@implementation JSShopCell

- (void)setShop:(JSShop *)shop {
    _shop = shop;
    
    // 1.图片
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:shop.img]];
    // 2.价格
    self.priceLabel.text = shop.price;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
